package com.company.entity;

import org.springframework.stereotype.Component;

import java.util.List;
@Component
public class User {
    public User() {
        super();
    }

    public User(Integer id, String name, String pwd, List<Phone> phoneList) {
        this.id = id;
        this.name = name;
        this.pwd = pwd;
        this.phoneList = phoneList;
    }

    private Integer id;
    private String name;
    private String pwd;
    private List<Phone> phoneList;

    public List<Phone> getPhoneList() {
        return phoneList;
    }

    public void setPhoneList(List<Phone> phoneList) {
        this.phoneList = phoneList;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    @Override
    public String toString() {
        return "User[" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pwd='" + pwd + '\'' +
                ']';
    }
}
